package com.liuyi.netty.mqtt.channel;

import com.liuyi.netty.mqtt.processed.MqttProcessManager;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.handler.codec.mqtt.MqttMessage;

/**
 * @author Mr.Fmy
 * @since 2021-08-19
 */
public class MqttChannelHandler extends SimpleChannelInboundHandler<MqttMessage> {



    @Override
    protected void channelRead0(ChannelHandlerContext chc, MqttMessage msg) throws Exception {
        MqttProcessManager.process(chc, msg);
    }
}
